﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GUI.Forms;
using SharedBusinessLogic.Models;

namespace GUI.Controllers
{
	public class OrganisationOverviewController : BaseTpController
	{
		#region Members

		OrganisationOverviewForm organisationOverviewForm;
		OrganisationOverviewModel organisationOverviewModel;

		#endregion

		#region Construction

		public OrganisationOverviewController()
		{
			this.organisationOverviewModel = new OrganisationOverviewModel();
			this.organisationOverviewForm = new OrganisationOverviewForm(this);
		}

		#endregion

		#region Methods

		public void OpenDialog()
		{
			this.organisationOverviewForm.organisationList1.organisationListDataGridView.DataSource = this.organisationOverviewModel.GetOrganisations();
			this.organisationOverviewForm.Show();
		}

		public override void Save()
		{
			//Do nothing
		}

		#endregion

	}

}
